package com.spark.mqtt;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "com.mqtt")
@Setter
@Getter
public class MqttConfiguration {

    public String host = "tcp://10.10.1.107:1883";

    public String clientid = "mqttjs_e8022a4d0b";

    public String topic = "good,test,yes";

    public String username = "zhangxing";

    public String password = "zxp52077";

    public int timeout = 10;

    public int keepalive = 20;

}